package com.hotel.hotelsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.utils.ResultVo;
import com.hotel.customersystem.pojo.CustomerOrder;
import com.hotel.hotelsystem.pojo.RoomInfo;

import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.List;

/**
 * (RoomInfo)表服务接口
 *
 * @author makejava
 * @since 2022-09-30 18:24:09
 */
public interface RoomInfoService {
    public ResultVo<HashMap<String, Object>> selectTimeAndState(LocalDateTime startTime, LocalDateTime endTime, int hotelId);
    public RoomInfo selectByOrderId(Integer orderId);
    public Integer updateByOrderId(RoomInfo roomInfo);
    public Integer deleteByOrderId(Integer orderId);

    public Boolean haveFitRoom(CustomerOrder order, RoomInfo roomInfo);
}

